package com.whmskj.xjlhsc.jitapi.entity;

import cn.hutool.core.util.StrUtil;
import lombok.Data;

import java.io.Serializable;

/**
 * @BelongsProject: XJLHSC
 * @BelongsPackage: com.whmskj.xjlhsc.jitapi.entity
 * @Author: lk
 * @CreateTime: 2025-06-10
 * @Description: TODO
 * @Version: 1.0
 */
@Data
public class InventoryRecord implements Serializable {

    /**
     * 盘存月项目ID
     */
    private Integer recordId;

    /**
     * 盘存月份ID
     */
    private Integer inventoryId;

    /**
     * 表格展示标题
     */
    private String showTitle;

    /**
     * 盘存日期
     */
    private String date;

    public String getShowTitle() {
        if (StrUtil.isBlank(date)) return "";
        return date.split("-")[2];
    }


}
